<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      .box {
        margin: 100px;
        width: 200px;
        height: 350px;
        border: 1px solid pink;
      }
    </style>
  </head>
  <body>
    <div class="box">
      <p>12334</p>
    </div>
  </body>
  <script>
    const box = document.querySelector(".box");
    function comment() {
      console.log('momo');
      const p = document.createElement("p");
      p.innerText = "落花流水东去也";
      box.appendChild(p);
      window.requestAnimationFrame(comment);
    }

    window.requestAnimationFrame(comment);
  </script>
</html>
